Modifying Sqrt and friends to return a floating-point type when the input is an integer, as this caused a factor of 2 error in the Fox-Li matrix.