add functions to create scalars and multi-dimensional arrays