Add group apply (creates object only once and sets membership).

Refs #5910