Fixed use local call for ft rules
Added optimization to inline rdf literals if they can be resolved