numpy/numpy — pull request #3577 by seberg (2013-08-05 19:05:46+00:00)
Title: Backport gh-3575

This was because of the assumption that broadcasting works
if the dimension is not > 1, but correct is != 1.

Adepted from a patch provided by prossahl, backports gh-3575