generalize fold_to_list, arg, right and left transforms, identity transforms for the expression generators, expr<> and ref<>