fix infinite loop when there's no exception handler. fixes #2361
fix #2364, type defs in macros
localpart needs to be called localize in 0.1 (fix test)