Fixes persistence of cleanup user groups after a group deletion.

The user groups cleanup was not persisted. I updated the test to make it failed. And I updated the Column type of the principal.groups attribute.
Thanks for the link. I've just made the correction.