calling SetIndex will now expand an array to contain the new value
empty gaps in the newly expanded array are set to NULL