Fix leak in typed reference assignment We're only creating tmp here to compare against the existing coerced_value. We need to destroy it in all cases.