tuple-formats-v4: introduce a (so far defunct) format framework.

Use formats when creating tuples.
Store format id in the tuple.