core: vector_to_list: Create less garbage.