fixed bug in ``_nthroot_solve``

small optimizations in ``_minpoly_op_algebraic_number`` and ``_minpoly_pow``