basic implementation of some ranged sequence iterators