BUG: Fix linspace for use with physical quantities

The fix for issue 3504 led to errors when using linspace with the quantities package. Multiplying with 1 instead of adding 0 prevents issues when using physical quantities.
Merge pull request #4511 from juliantaylor/quant-1.8

backport gh-4503 to 1.8