Correct rounding in ExtendedDecimal and ExtendedRational ToDouble methods in edge cases