Don't clone via toJSON().

We have now internal nodes (annotation fragments) which are not serialized.
For transactions we need them, though, thus we should not use toJSON for
cloning.
Expand annotation fragments when editing.

Not yet visible, but working on model level.
Create indexes for transactions.