DataArray::createDataArray: New overload that takes data

Will infer size, type from data.
Part of issue #293.