Change transpose for 1D matrices to return a clone of the matrix instead of segfault.

(This behavior was chosen over raising an exception for consistency with numpy behavior.)

Fixes #182.
Merge pull request #190 from cjfuller/fix_182

Change transpose for 1D matrices to return a clone of the matrix instead.