John/object lifecycle fixes

Fixes for issues found using VTK_DEBUG_LEAKS