fix issue reported in #95 and improve the typechecking of the xyz setter
Merge pull request #96 from rmcgibbo/trajectory-matrix-vs-array-fix

fix issue reported in #95 and improve the typechecking of the xyz setter