added support for setting BsonDocument members dynamically.