[madvoc] fixed creation of inner classes when using proxies or subclasses