Add an iterator for arrays