Switch path_templates to be a list of dicts to preserve order

Fix #9