CSHARP-962: Add SetBits to IndexOptionsBuilder.
CSHARP-933: Reduce the number of places nulls, actual types and discriminators are handled.