Fix model production for arrays.

When storing 0 in an array make sure that the corresponding
value in the root array is fresh and *not* the default value 0.