Don't use route-params as function.

Fixes a bug when passed a record as route-params as it doesn't implement
IFn like normal maps do.