bugfix: testbench tool chkseq did improperly report invalid file

This happened when permitted duplicate values existed in the very
last lines, right before end-of-file.
Thanks to Radu Gheorghe for reporting this bug.
Merge branch 'v7-stable'