CSHARP-893: Fix handling of empty string element names and dictionary key values.
CSHARP-893: Code review changes.