compiler: fix code generation %try, add tests for handler-case