Fixed conversion from HSV -> IPT.  RGB conversion template was missing IPT target - added it.

Fixed a couple of bugs related to converting colors to IPT.
My apologies for the whitespace changes.  My editor strips trailing whitespace.  I don't know how (yet) to tell git to ignore those changes - or to tell the editor not to do it on a file-by-file basis.