Register: Add simple non-typesafe "enum class".

The static constexpr members require an external definition for the linker.
This is a known C++11 problem and makes static constexpr pretty useless.

enum class cannot have cast operators.
Apparently a "design decision" by the committee.