process_array in sanitize_bool_in_hash