some things needed for puck.
Expose SimpleRefinedGrammar.
flatMap for lexicons