fix crash with multiple comma separated declarations involving arrays and non-arrays. Internally, split up declarations into multiple statements.
tests: update output after declaration split
tests: extend declarations test a bit
fix array initialization when initializer elements have different type