Add shape serialization to compiler!