Fix DeleteArray and GetCapacity