Nevermind. I just forgot the @ExplodeLoop annotation.
Move caching to SortIdentifier.

New API for creating grammars. Closer to the old one, but you need to add all alternative productions at once instead of one by one. All tests seem to pass even with Truffle but I get some "inline failed" messages that need further investigation.