changed asscalar to pass through scalars

https://github.com/numpy/numpy/issues/4701