Fix bug where removing a physical linkset would only decrement the Active Objects statistic by 1 instead of by the number of prims removed.

Unlike LL, OpenSimulator currently uses this stat to record the number of prims in the physics simulation, even when they are at rest.
Added regression test for this case.
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim