Fix a memory leak on updating an empty var size column vector with the same value

See the added test case for details.