index: remove reference to _data when deallocating

mostly addresses #5

TODO: this might still leak memory; not entirely sure. it'd also be nice
not to require the GIL for this, though that doesn't seem super
important.