Add iterator version of the single-argument slice constructor.