Fix broken array-write-barrier implementation.

It needs speeding up, but at least it works.