Fix the generation of in-scope variables for IfaceLint check