Revert "resize does not reallocate when resizing to smaller sizes"

This reverts commit e3cd215e1c4421d026e8b14bfae86570ee563774.
instead of modifying varray, defaulting to std::vector