use updated ref_count to determine when to serialize a BNode identifier.