tokenizer: fixed order in reset, preserve options

fixes #1