Remove use of NuGet targets
Adjust implementation of foldWhile and foldUntil to not traverse entire seq