Update IndirectReferenceNode to use IndirectReferenceFunction instead