Fixing bugs in templates relative to stringtemplate v4.