Ensure we return Floats, not Fixnum or Rational; fixes segfaults with mathn

Update of [#245].