
When emitting references to functions as part of `ValueAsMetadata`, we currently emit the incorrect (typed) pointer, resulting in crashes during deserialization. Avoid this by correctly mapping the type during serialization.
When emitting references to functions as part of `ValueAsMetadata`, we currently emit the incorrect (typed) pointer, resulting in crashes during deserialization. Avoid this by correctly mapping the type during serialization.