@Override
	protected void doClone(IList<E> that) {
		// Do not simply clone the array, but make sure its capacity
		// is equal to the size (as in ArrayList)
		init(that.toArray(), that.size());
	}
Returns a shallow copy of this <tt>GapList</tt> instance
(The elements themselves are not copied).
The capacity of the list will be set to the number of elements,
so after calling clone(), size and capacity are equal.

@return a copy of this <tt>GapList</tt> instance
jphp-runtime/src/php/runtime/memory/support/GapList.java