c_types: rework group()

Fixes #236
id: remove unused arg
c_types: make get_groups/get_group_list public
id: rework id_print()

Fixes #239
id: remove unnecessary coercion
id: remove dead code/unused imports
id: fix typo
Merge pull request #262 from ebfe/fix-group-foo

id/groups: fix group list handling