BUG: linspace returns correct type when num <= 0