Fixed copying of ip string from msgpack
Fixed issue #1 (heap-use-after-free)

If an instance is COW, we will not try to free it, instead we will only
remove it from the index.