BUG: linalg: don't tell BLAS to use zero strides

At least OSX Accelerate xCOPY routines fail if given zero strides, so don't do that. Also add corresponding tests.

Fixes gh-3901