Update CPP codegen to produce refresh specializations.