QDigest Serialization Issue

Hi, serialization is broken for QDigest, see test and fix attached