More fixes for Coverity.

It can't tell that dict_attrunknown always returns type=octets
Don't use %s for non-nil terminated strings
Fix comments so that they match the code.
Free all listeners when we exit.

Both talloc and valgrind now agree that we leak zero bytes
on clean exit