John/object lifecycle fixes

Used VTK_DEBUG_LEAKS with all applications, and found another bunch of memory leaks.