fixed static constants of fixed_point

The static constants factor and decimal_mask in fixed_point cause trouble if the bitshift operation is not properly cast.