fixed dict-based structure deletion under garbage collection