Reverses serialize, converting a SerializedValue back to its original JavaScript type.
'ref' entries are returned as the raw refId string (further resolution is done by
the caller via ConnectionHandler).'pooled_string' entries are NOT handled here — they are expanded transparently
by SnapshotStore.get before reaching this function.
serialised value to restore