Generalize iterator function type definitions
Iterator for ArraySequences