Check earlier for higher priority in binary ufunc, test. Fixes #3375