uv-common: detect error in uv_ip4_addr/uv_ip6_addr, and add a test for them