Add copy-object with metadata

Adds an additional copy-object function overload that accepts a object metadata map.