avoid circular references when scanning the object tree