verify_column_groups function

Verify the integrity of the column groups object