Created ErrorValue class to transfer internal evaluation exceptions to outer regions.

Smaller improvements.