Implement TemplateEnvironment.getNonterminalSuffix (with tests).