fix: make cmp_write_object handle CMP_TYPE_STR8