Add serialization of macros.