Added test for bug on LexerStream.__repr__
bugfix: Fixed state restoration in LexerStream.__repr__