Fix derpy metadata handling in ID lists, sillyness in ConfigManagerCore and a potential memory leak
Fix potential memory leak with IDetectableResource.
Merge pull request from Techjar, see #884.