fix gufunc for scalar input