Ensure proper encoding of wf:f with lists.

Needs to be pre-flattened