Exception when using ElemMatch to find the item in the array by using LinqV3 Contain C# Driver 2.25.0

Hi ,
After upgrading Mongodb C# driver to version 2.25.0, some of my queries are break and throw exception when using ElemMatch. It works fine in version < 2.18.0.
My class look likes :

 [MongoCollection(ObjectType = "Item")]
 [BsonIgnoreExtraElements]
 public class Item
 {
  
     public IEnumerable<string> RelativeItemIds { get; set; }
 }

and my old query look like :

  var builder = Builders<Item>.Filter;
  var listRefIds = new List<string>{refId};
  var filter = builder.ElemMatch(t => t.RelativeItemIds , t => listRefIds .Contains(t));
var data =  await Collection.Find(filter).ToListAsync();

The exception is :

unable to cast object of type 'MongoDB.Bson.Serialization.Serializers.StringSerializer' to type 'MongoDB.Bson.Serialization.IBsonDocumentSerializer

Could someone please help me to resolve it?

Seems to be related to this case that I created:

https://www.mongodb.com/community/forums/t/invalidcastexception-with-linqprovider-v3-when-using-pullfilter-on-guid-array/278335

In my case the problem is with a Guid array instead of a string array, but also related to contains filter (PullFilter in my case).

Seems to be a general problem with “simple-type” arrays (aka. non-BsonDocument arrays).