A NullReferenceException is thrown when deserialization of any of these collection types is attempted, due to the various CreateRange methods being trimmed out e.g. https://docs.microsoft.com/dotnet/api/system.collections.immutable.immutablelist.createrange.