Refactoring/encapsulate eval context

Encapsulate EvalContext inside compilation unit.

There were only two minor variables accessed from outside.