Merge pull request #4781 from nelhage/multiline-loop config: convert unbounded recursion into a loop