Add 'doc' argument to define()
Fix undefine_all for subgroups of the global group
Add group.unregister_all