Fix incorrect use of 'is' instead of '==' for comparison.
Fix tests that were failing in pypy.
Fix bug in MinMaxBase logic, that caused args to not be fully processed.

The tests previously didn't catch the problem because of the ordering of
the variables. The test added triggers the bug here, but may fail to do
so in other machines.