Critical bug fix related to in-place reversal of reference arrays.

... in the descriptor parent ID array no less. This commit also seems to correctly issue namespace/component updates on component removal.