fix contains method for netmasks

Otherwise I was having an error "TypeError: Object 5.0.0.0/8 has no method 'indexOf'" when I invoke `contains` with an instance of `Netmask`.