MPS-19123 Saving transient models sometimes doesn't work: closing trace nodes in wrong order.