Removing bugs related to garbage collection.
Fixed: print circular structure.