BUG: add missing gufunc failure return values and missing malloc fail check