BUG: linspace returns correct type when dtype is None