Fixed GWT errors; by removing calls to isAnonymous innerclass, replaced by the check that if we can assign from Enum; but the class doesn't contain any Enums, we just get the Superclass.