Copy raw document values on get/put, so clients can't mutate the doc

Had a nasty bug in the gateway where it was inadvertently modifying a
value passed to the Update callback, which was the actual slice stored
in Walrus, corrupting the data for future readers.