Lexer: Fix BufferedIterator implementation
Merge pull request #44 from Kha/fix-bufferediterator

Lexer: Fix BufferedIterator implementation