Python/SWIG layer fixes for cell orientation.

Improve a bunch of std::vector<T>::data() calls.
Merge branch 'garth/fix-issue-404-cell-orientation' into next