Also fix it for the case of a class in a non-default package
Reflection needs this information to work for local classes and anonymous objects