[squash] move arity+1 close to arity export / separate snapshot export section
[squash] use foldl