fix: make cmp_write_object handle CMP_TYPE_STR8

Function `cmp_write_object` didn't manage object with type `CMP_TYPE_STR8`.