Fix OpenEXR write_scanlines handling of per-channel data types.

Subtle problem that could scramble the buffer.

Also, make 'oiiotool -d' a little less likely to have a latent but
for particular unusual channel orders, when sorting out the -d arguments.