base: Add endianness conversion functions for std::array types.