Support struct IDs

Support txns of docs with struct IDS.