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.
http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments