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

Was broken in a4d8d95