John/object lifecycle fixes

Fixes issues found using VTK_DEBUG_LEAKS