SOLR-1042 -- Fix memory leak in DIH by making TemplateString non-static member in VariableResolverImpl