[BUGFIX beta] Give precedence to routes with more static segments. Fixes #3573

I might be missing something, but it seems to me that you'd always want to select the route with the most static segments if both stars and dynamics are equal.