Fix dimensional serialization