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

https://issues.civicrm.org/jira/browse/CRM-15343
Merge pull request #4334 from atif-shaikh/CRM-15343

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