Deep copy implemented with dup and Marshall