Compat: Only dump host address{,6}, alias if set.

Fixes #6013
Add nested group support for {Host,Service,User}Group.

Fixes #5858