Minor updates from JRuby and Ruby 2.0.

* Ripper changes to start working on JRuby.
* Long-standing typo in irb/input-method.rb.
* Revert net/protocol to using nonblocking IO, since SSL is fixed.
* Remove some unused &block in open3, rexml, rinda, scanf.
* Entity expansion safety-limit patch.