Allow deletion of variables
Create old_globals as a separate copy (issue 3864)
Merge pull request #69 from lidavidm/improvements

Fix issues 3863, 3864