Wrap eval() of kernel code in a function that overrides all in-scope variables.