Made a change to group/id_group

Added has_id(id) to class IDGroup so that clients can check the
existence of an id in that group.