Fixed serialization of PatMat wildcards.