CSHARP-993: Ensure unique ObjectIds across AppDomains.
CSHARP-986: Allow $external as a database name even though it contains a "$".
CSHARP-987: fixed issue with bulk upsert identifiers on pre-2.6 servers.
CSHARP-987: Code review changes.