Allow a more dynamic mapping for dynamic templates
Fixing tests
Allow  more matching methods
Set match to '*' by default
Fixing copy&paste error
removing default value for match because that conflicts with using e.g. path_match together with match_pattern regex