Add a more efficient Data.List.foldl' for GHC (from GHC's utils/Util.lhs)