Refresh the enum constants after parsing if created from rootpcm

and do not delete and recreate them as the pointer may be in use
in some usercode.