add __deepcopy__ method for Quantity, fixes #27

As suggested by @xubuntuix we need a custom copy method otherwise deepcopy of quantities does not work correctly.