scanner: implement is_ip_v6
re2ctest: update test patterns for ipv6
remove custom function for isipv6