Changes to MGC class library and fix a bug regarding nested inline class declaration