Fix #1120: Implied route matches are repeated in generated URLs where route is redefined, also refs #1147