Add swarm support for functions that take group and particle.