CSHARP-674: Handle null values in the KeyValuePairSerializer.

Added a unit test for a KeyValuePair with a null value.