Support for circular references for custom nodes