Refactored expression compiler.

New error handling.