LazyScript enclosingScope fixes