add updateIndices option to model.ref, for automatically updating to indices in response to array operations