Added the TokenIterator and its tests.