fix buggy impl of ArrayObject.