[Tokenizer] move if context to methods allowing .write to be optimized
Merge pull request #61 from AndreasMadsen/optimize

[Tokenizer] move if context to methods allowing .write to be optimized

fixes #60