Make the new TensorIO implementation work with TensorMap with const elements.
Fix issue with TensorMap<Tensor<const T...>> in the new TensorIO implementation from !327 (merged).
Fix issue with TensorMap<Tensor<const T...>> in the new TensorIO implementation from !327 (merged).