CSHARP-1120: Update Core settings classes to use record-style With method.
CSHARP-1120: Simplified With methods of XyzSettings so that they always return a new instance. Added missing tests.