Support for hashie 3.0

This should support previous versions as well as the now-incompatible 3.x series.

Fixes GH-183, GH-182, GH-177