Changed IRouteMetadataProvider to support returning different types.