Socket.gethostbyname

Update Socket.gethostbyname.

First, spec is updated to add tests on address list to verify that these addresses are in packed format.
In a second commit Socket.gethostbyname is updated for all ruby versions to pass spec.