Huh. Somehow the writeArray() was never wired up. We lose the failing array index in the exception, but is fine to me.