Add a function that repacks/reassociates AccArrays to meet the invariant enforced
in the previous commit.  The new UnitTest passes.