Issue #4015: Set ndim=0 when constructing arrays from a buffer with ndim=0.