Refactoring and bug fix
Fixing RAII issue with token stream
Merge pull request #18 from lstrojny/bugfix/max-booleans

Token stream: resource acquisition with neglected destruction