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

This now matches the behaviour of matrices created from 1D lists.
Merge pull request #7589 from Tempel/7564_matrix_ndarray

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