Fixed bug where classes that extended internal classes could not be
instantiated