data.get_timeseries_dict: fix resample bug