Make IP addresses immutable
Fix equality check
Refine contract check
Fix ipv4 check on addresses with a leading 0