feat: write recID field in associations

Merged Wouter Deconinck requested to merge rec-id-in-associations into master

This fills the recID field in associations with the index of the reconstructed entity.

Merge request reports