Implicit iterators are only used when not defined in bindings
Fixed case of iterator defined inside function