(#185) - remove unnecessary serialized counter/value

Removed the counter, and also ensured we don't
bother emitting {value: null} for every null
value. (I.e. we just infer it's null if it's
not there.)