Hacky state with bugfixes

- LangElement had uninitialized members which caused random bugs.
- First for loops, but there's a hanging bracket in bracketStack at the moment
  so this is not finished.