Add some bits for sorting and merging timeseries externally
It's useful to be able to combine a vector of timeseries for a channel
into a single time series.
To that end, this commit adds a way to get a mutable reference to the data
and a way to destructively get the data as a vector, making for efficient
external concatenation of time series.