Introduce external constructor function, BaseArray(size) and DeviceArray(size)