Fix minimization for lexical analysers and enable it for the generated automaton. Code Cleanup.