mp_integer: change the implementation of sin/cos to match mp_rational's.

Plus a minor test addition to mp_rational.