Serialize object types. Add Rect and Polygon test. Add empty test level.