Fix crash due to missing type check for TRY/except handlers (CC#1514)

With this change, TRY/except now checks that the typespec of a handler function actually allows calls with the error value, before calling the handler function.

This fixes [CureCode issue #1514](http://issue.cc/r3/1514).