Add array/object/field encoders and custom type encoder.