Implemented serialization of gui properties (serialize_props).