Fix in ip_equal, plus testing code which led to that fix...

network.c:
- use the correct macro for IPv4-in-IPv6 test

network_test.c:
- bunch of tests for addr_resolve() and ip_equal()