Make enum conversion using lua_integer or la_Unsigned depends on the
underlying type