fix generated lexer: use stateMap, rename variables, do not generate transition actions for soft lexemes
fix generic lexer; add bootstrap test for rewrite.tm