don't return a bogus mpint if malloc fails or if the src has the wrong number of digits. return nil instead.