Added support for serializing and deserializing brush geometry.