Add support for paginating non-collection arrays.

This is one way that we could resolve #4