Adds handling of circular references in FactoidTriggerProducer.