Added getCollection method to Paginator. Fixes #1527.
Merge branch '4.0'