Literal enums are reset after hot reloading

I’ll keep poking at it here to see if I can reproduce the issue myself.