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