Improve value merging for inserted objects.