Fix code to not rely on stringifying the number returned from #/

* When requiring mathn, the Fixnum#/ and Bignum#/ methods are
  replaced with an implementation that returns a different value.
Fix max_weight comparisons to use integers

* This is a work-around to a bug introduced in previous commits.