Fixed nullreferenceexception and added unittest that generates code for untyped arrays. Fixes #1798
Added both syntaxes for untyped array in unittest.