Fixes #15028: Make DataContractJsonSerializer honor EmitDefaultValue during serialization.

This should work for both reference and value types. Together with tests (thanks to Jon Goldberger).
the opening brace for methods should be on its own line