Implemented refs as links for DataTag in analogy to SimpleTag

Modified testDataTag too