[496768] Add test for saving of TypeExp references to orphans
3 files changed