Fix type warnings with size and length of Wire.write