clef: first version of generic sum function

- to improve with in the case where function return an expression
  template, not a regular type, with a make_regular function