CRM-14798 - crmCaseType - Fix stale and leaked data