Proper checks on group-type sections

This should really be a flag rather than a compile-time check