Allow deletion of variables
Create old_globals as a separate copy (issue 3864)