bugfix

Segmentation fault bugfix: Vector element needs to unregister at registered
objects on destruction.