Fix HLL mapping of type objects.
Make host resolution more widely available.

Want to re-use it in async sockets.