Also return a pointer from `Layer::duplicate_with_shallow_strip_copies()` rather than a reference, since it doesn't maintain ownership of the returned item.
Also return a pointer from `Layer::duplicate_with_shallow_strip_copies()` rather than a reference, since it doesn't maintain ownership of the returned item.