Backport NestedIterator fill implementation.

Backporting NestedIterator fill implementation to resolve OSX 10.9 build
failure.