Deep copy any object or array.