Allow FetchingIterator to accept stop-value

Value to test against for the end of iteration can now be specified. Pre-
viewously the stop-value was hard-encoded to NULL.

Caution: If the stop-value does not appear, iteration will go on endlessly.