Fix impl of ToMsgPack for containers