Bug fixes and more processing

- Fixed introduced bugs in terniary operators
- array handling needs a rework