Fix setting of TIFF ExtraSamples tag.

- force cast ExtraSamples to a list.
- fix calls to ImagingLibTiffSetField to include array length.