Automatic reallocation in value vectors