Fixed bug in PagedArray

Resizes the length of the array passed to PagedArray methods to the size
of the content in that page, rather than to the fixed length of a page