Fix arguments serialization (forgot case != null with size == 0)