mp_integer: implement some missing functionality and math overloads.