restore variants copySetValue and borrowSetValue

If a value is borrowed, it is not freed when the variant is deleted.