Fix #7564: Matrices created from 1D ndarrays are in column form.

This now matches the behaviour of matrices created from 1D lists.  Fixes #7564.