Partiall revert bfc54b7e

Refactor Url->getParams() to return an instance of UrlParam instead of an array.

fixes #6760