implemented reading/writing lists: also supports dotted pairs, alists,
plists and trees