Optimized IPSet.__contains__, added tests. Stopped copying for IPSet.__iter__.