math/mp-nthrt.c: Implement nth-root, and perfect-power detection.