dynamic templates are a list of hashes and have a mapping key (not properties)
Add tests and normalisation to support old dynamic_templates format