Merge "Support running ForEach on non-root functions."