Vectorize all_type and any_type.