Enforce maxRows in PositionedResultIterator.

This used to work in 2.0 but got broken during the Invoker refactoring.

Test in PositionedResultTest. Fixes issue #786. Review by @cvogt