Fix bug in _SAT collision test

The SAT function improperly calculated min/max values in some cases.  This fixes that issue by comparing to +/- Infinity instead of special casing the initial values.  (It also gets rid of a now needless comparison, which might help performance.)

This also includes a qunit test that catches the issue.

Fixes issue #828.