Removed template generation. Too silly for now.
Added discover_template_types function to utils.
Modified unittest to find instances of templates.