BUG: Check earlier for higher priority in binary operators, add test

Fixes #3375
Add regression tests for pickleable record arrays
Merge pull request #3501 from inducer/master

Fix "numpy scalar * array-like == performance horror"
Merge pull request #3510 from mwtoews/master

Add regression tests for pickleable record arrays