cpp: tiff: Use strict type conversions in IFD
cpp: tiff: Set sizeC and indexed correctly in core metadata