Revert definition of is_indicator_matrix
ENH handle properly row vector