ENH: avoid meshgrid and fancy indexing for 1d masked sort

Improves performance by using the simple indexing path and memory by
avoiding creating a full meshgrid.
DOC: fix return shape of tensorinv doc
BUG Make ma[row][rec] setter work by avoiding copy in mvoid.__new__