Avoid some sources of stack overflows in the array analysis.
Avoid some sources of stack overflows in the array analysis.

This switches out some concatMaps for lazier foldrs.

travitch/foreign-inference,travitch/foreign-inference