Fixed bug where removeVertex/Edge were allocating more than 1 version
for each commit.

Some cleanups and small refactoring to get a non eventable element.