umath static analysis fixes

one significant memory leak (added in 1.9) and a few insignificant ones fixed, found by cpycheck

also fixed the api checksum warnings that occur due to the annotations not printed as repr (with pointer values) instead of str
Yes, the numpy_ufunc interface differs here from ufuncs, which keep input and output args in the same arg list.