Added warning that data_array is modified
Fixed write_taffmat_slice modifying original data.

The function write_taffmat_slice was using a slice of data_array,
but since slices are just views into the original data, data_array
was getting modified.