Added TemplateTemplate class. refs #418