Changed old C++ enums to C++11 strongly typed enums.
Also prevents programmers from shooting themselve in the foot by now automatically using the correct data size for the packet type ID.