Improvements in spatial's timeseries cache

Converted TimeseriesCache to a class, and it now also caches
the time step.