Do not clear the array of ignored ids.
Fix circular reference detection.