Cast route() parameters to array so a single value can be given

Was broken in a4d8d95
Merge pull request #2469 from davejamesmiller/route-fix

route() no longer accepts non-array $parameters