Minimal fixes to IR to get JRuby compiling again.