Added getCollection method to Paginator. Fixes #1527.