There were quite some nice group eventhandlers introduced in A3 patch 2.10.
What is missing is a group eventhandler which fires when all units of a group were killed. So one doesn't constantly have to check if there is still a unit alive in a group to respawn the group for example.
Something like
group addEventhandler ["allUnitsKilled", {do some stuff}]