mp_integer: improvements in the ipow_subs() implementation.
mp_integer: a couple of fixes and improvements in the integral_cast tests.