Basic implementation of local variable expansion in file scope