Worked around an apparent GCC bug in moments.
Merge pull request #2359 from SpecLad:moments-no-vectorize