Fixed serialization problems with array types