Functions can end in a loop with a variable mutation. Fixes #82