CRM-15343 - 4.5.0 corrupts soft references to case-types

https://issues.civicrm.org/jira/browse/CRM-15343