replacing a hash with itself should not return an empty hash
Merge pull request #544 from glucero/master

replacing a hash with itself returns an empty hash in ruby 1.9 compatibility mode