Exercise 12.6 (P341) Adapt encode so that, as an optimization, it does not encode a field whose value is the zero value of its type.