Enums are now `const` instead of `static`

`static` now means that there will be a memory location containing the value, while `const` is more similar to a `#define` in C.

Note that this change is not urgent because the existing code still compiles. Maybe we can wait a few days for everybody to update their rustc.