add support for coercion for hash that inherit from Hash