BUG: various Categorical fixes (GH6823)

BUG: bug in selecting from a Categorical with iloc (GH6823)
BUG: bug in groupby-transform with a Categorical (GH6823)
BUG: bug in duplicated/drop_duplicates with a Categorical (GH6823)

closes #6823