Add mp_isneg()

This function originally came from Heimdal's bundled copy of libtommath.

This was originally part of https://github.com/libtom/libtommath/pull/18 . I'm splitting it into its own pull request for easier review and acceptance.