lua: emit a proper deletion when setting an existing list to a new list with only...