Fixed #1122. BigDecimal 1.9+: exponent for Nan,-Infinity,Infinity should be 0, not 1