Support for dict array-like access and $foreach variables

Can use now in loops: `$foreach.count`, `$foreach.index`, `$foreach.hasNext`, `$foreach.first` and `$foreach.last`

Also it is possible now to get an object like this: `person["name"]` additionally to the classical way `person.name`