fixups to `delete` when called with array variables