Introduced additional prerequisite for inlining a function. Used variables have to be in the same scope and variables with a global scope no longer get renamed.