Fixed several issues in replace rule definition: rule parameter name, invoke parameter types, and invoke arguments.
Fixed several issues in replace rule definition: rule parameter name, invoke parameter types, and invoke arguments.

jakobehmsen/midmod,jakobehmsen/midmod