[clef] Fix C++14 mode, and bug in sum

- sum : when passing a domain &&, need to move the domain into the
  tree in case the expr is lazy after eval.