bugfix reading arrays (#234)