Fixed ArrayWriter to properly serialize the runtime reader.