C++ fix: PrimitiveOps codegen fix