Fix allocation warnings by not causing resizes during allocation.
