Add an iterator for pointer arrays