extra: add consume iter to treemap.
extra: switch json from hashmaps to treemaps
extra: make json and treemap cloneable.
extra: give up trying to make more fields of context cloneable, just use ARCs.