Fix more serialization of hexes