Reset a varlength array, freeing the stored pointers and keeping the allocated memory for reuse.
For fixed-size arrays, this is identical to meos_array_reset.