Fix bug that occurred in decompose because for Numpy arrays, the value was being passed by reference rather than by copy, and for Quantities with a non-unity scale, this modified the value of the original Quantity
Merge pull request #1163 from astrofrog/units-fix-decompose-array

Fix bug in Quantity._decompose()