array parsing works, code emitting and proper error reporting does not