MerkleDoc serialization/deserialization works