Fixed issues with Java enums on imported classes