Fixed loose/tight in Links.ReferenceLinks test output.
Fixed reference link parsing.