mp_rational: implement generic assignment operator.