Fix Integrity on ruby 2.0.

Add a workaround patch for https://github.com/datamapper/dm-core/issues/242.

Alternative fix to #240 for #238.

@byroot what do you think of this?