Improve error message in ufunc type tuple extraction