FIXED: rdf_reset_db/0 could crash.
ADDED: rdf_current_predicate/1, rdf_subject/1 and rdf_resource/1 now fail
silently if the argument is a literal.  Used to raise a type error.  This
provides more logical support for generated goals, such as optimizing
rdf(S,_,_) to rdf_subject(S).