Minor improvements to linkref parser