fixed SingleDimensionLUTRealTransform, abstracted out common stuff with
LUTRealTransform