common.hpp: Added toHex(const uint8_t* array, size_t arrayLength).