The fold WL accumulator was not being correctly updated by MMV, meaning that a dangling declaration but no initialisation persisted. This issue crops up when generating CUDA code, as the example in #2310 (closed) leads to the accumulator neutral element being passed into the CUDA kernel function.
Fixes #2310 (closed); see issue for more details.