Better handling of bnodes in some versions of librdf