Serialize quantile digest (and other minor fixes)