Add the ability to disable casting of RDF::Resource

Closes #56