Fix segfault when Feature destructor decrements reference counter to 0.
Reproduced by: defn = new FeatureDefn(); feature = new Feature(defn); feature = null; gc(); feature = new Feature(defn);
Trigger appveyor.