Using getVariableForRead in 'typeof' optimizer to get aware of undefined variables