Fix array storage corruption in batch inserter.

This addresses an issue where, when changing an array property from one array to another array of the same size,
the dynamic record storing the original value would get marked as not in use twice, putting it's id in the list
of reclaimed ids twice. That in turn would, obviously, allocate the same dynamic record twice to two different
properties.