Fixes: np.asscalar should pass through scalars #4701

np.asscalar should pass through scalars #4701
We handle the problem by use array(<input array>).item() so that we make sure that item() exists