Generalized serialize/deserialize to be easily extendable to other ACEDrawingTools