tests/test_deps.py: test_dstr cleanup and fixes

Simplify the code by not stating all test cases in the
code, but using a loop. Also adds more tests this way.
apt/package.py: Improved readability and documentation of BaseDependency.__dstr().
apt/package.py: Simplified BaseDependency constructor.