Serialization: Simple values and lists/arrays. Added tests.