JetRec+JetMomentTools: Fix clang warnings.
Don't use references in a range-for if the object must be copied.
Earlier, these packages were changed from const auto&' to
const auto*',
but we prefer just `const auto' to assist with a possible future migration.