Add to groups bugfixes

Old method to determine group membership was not effective, replaced
with contains method. Fixed verbosity in jobcode switch statements.