changed how multidimentional outputs are handled (shape handling copied from development branch of numpy)
changed how multidimentional outputs are handled (shape handling copied from development branch of numpy)

cupy/cupy,cupy/cupy,cupy/cupy,cupy/cupy