ctools: fix minMax
ctools: update generated C code
GL: use ctools.minMax for curves and images