also fix empty sets when serializing

an empty set still breaks putItem