Support struct IDs

Support txns of docs with struct IDS.
You're right - that's not good. See #34 for an alternative approach.