cares_wrap: remove unused function getHostByName()

Hasn't been used in ages. Also remove its (already disabled) test.
src: centralize class wrap/unwrap

While almost all cases were handled by simple WRAP/UNWRAP macros, this
extends those to cover all known occurrences.