mp_rational: implement the mpq view class.