BUG: boolean groupby performance issue. close #2692