support full expressions in foreach collections - fix issue #131

All is in the title: this PR changes the {foreach} statement grammar to support the same type of expressions as for text or attributes elements. It also fixes issue #131: now global collections can be directly displayed through {foreach} statements.