Lexer: Fix BufferedIterator implementation