Expose the group for a related link in the API

For a related link, expose the key of the distance group it falls into - ie. subsection, section or other.

This is a backwards-compatible change, as this doesn't modify the overall structure of the related links or the artefact.