Add option for disabling enum writeout.