Fix issue #459 in JNAerator: parse exotic enums.

Note: this fix does not retain the type behind : in the AST, it just
fixes the infinite loop issue in the parser.