Properly initialize Output before writing to it for Kryo.