FIX use selected_obj rather the obj throughout groupby

fixes many parts of for #5264... Changes lots of `self.obj` to `self._selected_obj`.

probably should vbench before merging?

cc @jreback @TomAugspurger