fix division by integer bug
fix trim bug, make Rational objs more like numpy