BUG: Fix incorrect dtype on groupby with ``as_index=False`` (GH3610_)

closes #3610