Improve sqrt handling of large integers and large and small rationals.