Tokenizer::simplifyEnum: Fixed internalErrors when building with compiled patterns.