Fix dynamic templates

dynamic templates are a list of hashes and have a `mapping` key (not propeties).

See http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-root-object-type.html#_dynamic_templates