vector: reserve space before unpacking

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>