Merge get_size_from_dims() back into GpuArray_empty().