Fixes a bug in the unwrapChangedArray function.