fix strictness of foldr/build rule for take, see #1219