Recognizer for rational numbers (ratios and integers)
(rationalp x) is true if and only if x is an rational number.