handling fusion fold and accumulate function argument by value rather than const ref to fix free function usage