Allow single parameter to be passed to route generator

In 4.2 when using route helpers you can do route('routename', $singleparam);

This pull request brings this behaviour back as currently you need to do route('routename', [$singleparam]);