Added support for serializing \ArrayIterator objects

Added support for serializing \ArrayIterator objects using visitor's visitArray method.