Preserve object references using YAML anchors/aliases, emitting anchors only for objects that are referenced more than once.
PreserveMinimal = 2
This mode performs a pre-serialization pass to identify shared and cyclic references.