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 #4503 from rproepp/3504-quantities

Fix linspace for use with physical quantities