Support IPv6 DICT servers, treat port as string not integer
I run my own server, specified localhost
which resolves to ::1
and it failed to connect.
There is no helpful error message, so after a little tracing it showed xfce4-dict is still IPv4-only.
Fix that.