BUG: optimize: fix botched test for scalars

Any row-vector or other ndarray with shape[0] == 1 was passed through.
The "TESTMODE=fast NUMPYSPEC===1.5.1 OPTIMIZE=-OO" travis worker complained of an error.  I can't find this anymore either, but it was something about the asserting that assertions are raised, which I assume means that the code was not supported by numpy.testing from old version 1.5.1 which scipy says it supports.