problem.hh: check that all the elements of CLIST derive from Function or SparseFunction.