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

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

Fixes #5858
Fix JSON output for non-finite numbers.

Fixes #6015
Agent (WIP).