add support for coercion for hash that inherit from Hash

This is the fix for issue #230