C backend: Optimize exception allocations
Add a test case for exceptions
Backend: Fix late env loading