Guard deallocation with PyObject_GC_Untrack, trac #796.
Test for trac #796.