Fix to some view type names, probably cosmetic.
Fixes to querydb so it gets argument numbers right.
Fix to constraint cache key generation.
Pagination for count results.