Add StatefulIterator, fix bug in DataCallbackIterator.
Merge pull request #1 from ryszard/master

Add StatefulIterator, fix bug in DataCallbackIterator.