Stop copying plans in LogicalPlan::with_param_values
#10016
Merged
LogicalPlan::with_param_values
#10016