Add support for declaring each group without calling endgroup().