Spectra for multi-dimensional time-series

These commits allow spectral analysis of TimeSeries objects with multiple dimensions. Previously, we were limited to 1- and 2-dimensional objects.