Resize vectors when adding an object and vector count reaches capacity.