[PLAT-4715] Fix bug where TimeSeriesBuilder time and value arrays resize differently