fix koptcontext serialization when boxa or nai has zero size