Add conversion to and from lists
Extract code for getting fields
Support conversion to and from flat lists rather than nested lists