Fixed pack bug

in case of TLV_TYPE_MSG, the tlv->length was MSG_SIZE(msg) instead of get_packed_size(msg)