Add support for partial object encoding.