add each,next,rewind,with_index methods to ScratchEnumerator, with tests