BUG: in label-based timeseries2matrix