Change a bunch of enums to enum classes.