CHEF-4633: fix inefficient assignment in deep merge