[DF-1102] Fix: now using std::vector.resize() instead of reserve()