Make fixed matrix type serializable.