Per #321 call Check_Type T_HASH before dereferencing with rb_hash_aref.