Add mode_for_int_vector helper functions