Add ToMsgPack/ToProtoBuf extension methods