Fixed INET custom type to work for IPv6; updated tests accordingly