Changes suggested by Alex Yarmarkovitch to improve Slicer visualization of output
Changes to a) pass tensors correctly to output and b) save vtp files with tensors and scalars appropriately indicated for Slicer visualization.