Save/Restore $! when Java code catches Ruby exceptions

* Fixes a whole bunch of rubyspec errors/failures in IR mode.