ods: make ods export more deterministic.

1. Avoid using pointers for naming items in ods.
2. Avoid some dependence on hash order.