Fix handling of links in SPARQLJSONWriterBase