Disambiguate paths with different numbers of variable parts

Should allow separate routing of paths such as
/foo/{bar}
/foo/{bar}/{baz}