Implement CallbackFilterIterator, issue #1715