Add support in enumerate() for iterators with exotic pointers