Some bugfixes to the new ArrayObjectCollection implementation.