Support correct serialization of constant variables that are inlined (int and
float).