UMaterialExpression::ContainsInputLoop

This overload accepts the set of visited expressions to avoid visiting them again when checking at once whether multiple expressions contain a loop.