Add dict_has_near_search macro to test if a dict supports search le/lt/ge/gt functions.