Change foldr's recursive call from foldl to foldr

I believe this fixes https://github.com/elm-lang/core/issues/45.