Fixed long standing bug that was crashing when database was updated or restored after editing, adding or deleting any user defined snippet. Did this by storing an IViewKey object instead of an IView object. Problem with IView object is that the instances stored in treeview (and more particularly instances of any objects wrapped by the IView object) may change between when tree state is saved and when restored, causing a GPF or similar.