Test case for loooong page numbers in paginated results seems to cause SQL error
Clamp limit values to be unsigned integers.

This solves large page numbers potentially turning into scientific
notation when being formatted into queries. It also further safeguards
against SQL manipulation.

Refs #GH-1263