Faster array append.
Added isPointer.