Change opcode enums to enum classes.