Implements structured clone in Node.js, from a live object or serialized/deserialized from a buffer.