Fix null value handling on dictionaries

Null values within dictionaries were being ignored even with
NullValueHandling set to Include on the serializer.

Closes #1004