copy_reference works great but would be helpful to have an extra optional param to allow overwrite on name collisions.
Duly noted. I've added this as a feature request.