remove try/catch from template tokenizer, store warnings in root token if any