fix instumenting circular objects and add test