1. Bug fix in foldr1Impl().
2. Tests for foldl(), foldl1(), foldr(), and foldr1().