Make scan emit end with final value

Remove now-unused ArrayIterator adapter