core: added support for 0-dimensional arrays