write Uint16Grayscale Tiff
Encode a width × height grid of 16-bit-unsigned elevation samples (row-major, top-row first) into a TIFF byte array. Codes are 0..65535. Used by the cross-platform elevation cache to store Int16-shaped tiles on JS / iOS, where PNG-16 isn't cross-platform available.