Allow references to const enums if they are being preserved in the final output.