Fix broadcasting.

The wrong dimensions were being trimmed when fetching from a
broadcast array.  If input matrices happened to be square, then
this would trigger the error.