This fix avoids a small slow down in scenarios where reference types are enabled but a given function doesn't actually use them. Fixes #1883
This fix avoids a small slow down in scenarios where reference types are enabled but a given function doesn't actually use them. Fixes #1883