FELIX-2821 Apply patch by Stephen Flynn (thanks alot). Basically when closing the DependencyManagers, the manager list is copied, reversed and this reversed copy is iterated. And added an integration test to prove correctness.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1066946 13f79535-47bb-0310-9956-ffa450edef68
7 files changed