Ensuring with_index is called on an enumerator