Fix for filtering option
Fix for memory leaks when using Lexer label refs
emitNew renamed to emit

- also fixed(calls set_token)