Serialize shapes using IESRIShape