Fixes bug in the first link of PaginatorHelper::numbers().

The link was the current URL instead of a link to the first
page. This only happened with named parameters. This commit
also includes a test for querystring parameters.

Refs #1432.