fix: runtime filescope was wrongly renitialized

The filescope injected by the compiler inside the template function was properly retrieved during initialization.
But then, the variable being wrongly defined as a closure variable, it was reinitialized and not reassigned on subsequent calls.