Fix wrapping for IconImageGenerator.SetOutputDimensions

unsigned int dims[2] would not be taken into account otherwise. This patch fixes it.
Fix an inconsistency

Number of Curves is size_t and not unsigned int