more tweaks to the RouteDefinition.Rank determination