Fix skip and limit values for all docs queries

This extends commit 1b3c795 to include all docs in addition to map
views and reduce views.