Fixes length validator's tokenizer

Closes #100
Closes #96
Merge pull request #107 from dockyard/bc-tokenizer-fixes

Fixes length validator's tokenizer