* ext/psych/lib/psych/scalar_scanner.rb: use constants rather than
  calculating Inf and NaN.