[IR] Continuation of f8d237c7: fixes broken specs from that patch

* This completes the changes started in f8d237c7 and brings
  rubyspec results to previous state.