Use strict foldl' instead of foldl

Use of foldl is always a bad idea.  Switch to foldl' instead.

Fixes #13