Fix #2836. Ensure proper handling of option "system=yes" in module "grou...

See issue #2836.