RubyHash#hash reverting the latest changes when it's a recursive call.