Serialize/deserialize quantile digest
Fix boundary conditions
Only compress if sum(weights) < floor(n/k)

This was inadvertently broken when we implemented exponential decay and make weightedCount a double instead of a long