improve mpack.Encoder