made null data code configurable.
made serializing null values configurable