Hydrate/dehydrate lists using valid functions.