Added thingflags and frame parsing to template parseargs. Fixed bug in tokenizer causing punctuators to be tokenized incorrectly, and added test case.