fixed isSubType for GenDeclaredTypes