Add support for transmuting to and from Hash

Support for objects that inherit from Hash is also included