Improved diagnostics for failing use of foreach

Alternative warning

Better message

Use comma instead of parenthesis for extra tip