[5.0] Single Parameter Route Generator Fix

This allows single parameters to be passed to route generator again. See #5795.
.
This is caused by an array typehint on the `toRoute` method which is unnecessary because any value passed is wrapped in an array in the `replaceRoutableParameters` method.