Improve the creation of DMRS links so it's more robust to incomplete MRSs.

Also, SimpleMRS now gives the whole MRS structure a Lnk based on those of
the EPs contained by it.