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