Improve testData generator for reserved words.

Cashing iterator in CyclicStream.
Detect generating unexpected testdata file(e.g. may caused because of bug in stdlib).
Regenerate testData for reservedWords after take was fixed.