implement equals and hashcode for linksshould fix #738 (Ambigious reference error in editor) (commit: 499fee4)