Fix typo.
Fix typo.
Accept Particle* as well as indices.
Don't include nonrigid member rigid bodies.

This function is only supposed to return rigid
members (and rigid nested rigid bodies), not non-rigid
nested rigid bodies.