Correctly deserialize nil values.

For both scalar and collection fields.