Remove unused field from CompilerConfig
Rename INTERNAL to INTERNAL_ERROR
Add error code for compiler errors
Fix nth_value function