small cleanup and generalization of fix flow/gauss
- remove unused or unneeded class members
- make the code compatible with per-atom masses
- test for and abend in case of an invalid group mass
(cherry picked from commit e017b3389839ff45bc4b5c24c2c7eab1522ff528)