[bugfix] fixes array parsing
[bugfix] Else nesting fixed
[bugfix] scoping issues leading to variable contention