Fixes for Ruby 2.2.0

For rubby 2.2.0.
aye, but you'll run into a similar error further down because of the verisoned serializer makes the assumption psych knows how to switch to syck.