pub fn compact(state: &[u8]) -> Result<Vec<u8>>
Compact a CRDT state by re-encoding (GC tombstones where possible).