Hash#merge works when passed a Ruby Hash

Rebased this onto master as requested.