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.
Merge pull request #1435 from Phally/2.4-paginatorhelpertest

Test case that proves #1432.