serialization now works with null items and lists