add cases in the compiler for exception and reference-related exps

The compilation of exceptions is not correct, but doing it properly will
require changes to the bytecode (at least the ability to manipulate the
exstack).
The compilation of reference stuff should be good though.