[mlir][sparse] add asserts on reading in tensor data