Allow for setting of parameter patterns globally on the router

Also fixed a test which did not actually test anything.

See #176 for more details.