Fix writing enum definitions.