Fixed matching for FFI nodes
FFI nodes are matched based on the StableName of the foreign function to prevent the pure version being unnecessarily evaluated.