Add support for paginating non-collection arrays.