Improved assert_hashable.