Plug in IsReal, IsIntegral, and NRoot.

This commit also moves some helper methods from NRoot into
spire.math. Maybe we need spire.math.Util?