Fix behavior of #replace method

This is my attempt at addressing issue #68. Apologies for the delay, I've had these changes laying around for a few days.

I don't think they're ready for prime-time yet as it's only implemented for `Hashie::Mash` and `Hashie::Dash` at this point, but it can't hurt to get some feedback :)