BUG: Numpy sets ndim=1 when constructing arrays from a buffer with ndim=0.

Closes gh-4015