Refs #5992 Fix and add tests for subfeature "don't export applications unreferenced by target process"