[util][calculation type] fix the doc description of the
calculation_type struct; reverse the order of CalculationType and
promoted_type in the implementation of calculation type