Using datasetID if it is available, otherwise fallback to KeyFamilyRef. Fixes #15