Fixup of a problem with scoped enums emulation

- Fixed a problem in uniform_typecheck.hpp where the value type
  of an enum was queried but not yet defined with scoped enums
  emulation enabled.