Agents in anonymous group

Proposed fix for #353 . Let's leave the discussion of this PR in the issue thread to avoid discussing in two places.  
(Actually, is it any IRI, or is it an 'IRL'? I forget)