add support for inserting spies into hashes