Fixes a bug in Z.HasManyArray that improperly unhooked inverse
associations when replace was called with models that were already
associated in the new array.