From rBe7a514369fe70, since I did not have time to do proper review in D5808... Note that we could also consider that shallow copy of src should never be dst of that function and add some asserts instead. For now going the safest and simplest way though.