Simplify NestedIterators detector
Merge pull request #310 from troessner/refactor-nested-iterators

Simplify NestedIterators detector