Fix locations of shadowing warnings in ms_transform

A shadowed variable in an ms_transform match expression emits a warning located at the match expression instead of the variable.