Implemented TemplateFactoryTemplateFactory. refs #418