fix replication for cases where we have a dynamic array in the update object