fix inlining of functions with static parameter name conflicts