+sgn, abs, cmp, cmpabs, get_mpfr, randtest, and some initial test code