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.
Merge pull request #461 from ixkael/fix-issue-459

JNAerator: parse exotic enums (issue #459, thanks @ixkael)