timeseries.io.cache: bug fix for empty caches
frameCPP: copy only the first frame
TimeSeries/Spectrogram: centralise common methods