Implement ForeachStatement for (static) Arrays

I am currently stuck at the semantic analysis.
because depending on the type of the expression that is itterated foreach does diffrent things
how I check If the itterated type has thoose methods ?
-  `popFront()`/`front()`
-  `opApply`

That still do not make any sense.

You are generating something like:
{
  size_t index = 0;
  for(index; ....) { ... }
}