Fixed varId problem #5293 (and its duplicate #5577): Classes inside functions are non-executable scopes.