[Fixes #724] Allow pagination to work with any model
Merge Search Param fix