#245 introduces a safe C API for CBORNondet. CBORDet should be converted to this API. (Ideally, CBORDet should have the same API as CBORNondet.)