Prepare for Nullable<> handling, add micro-optimization to JSON encoder.