added the ability to handle quantities in from_array

this was already in the documentation but was not obeyed. I also added some tests. @mhvk @keflavich @followthesheep @nhmc might be interesting for you as you use that most widely.