Serialize nulls as nulls (issue#145)