Improve the error handling when a problem occurs generating from a template
Improve the naming of templates so errors are easier to track down
Make sure the correct facet is referenced in all the templates
Fix template for lists of structs