Various fixes for RDF tabular.

* Improvements to table captions, mostly including the graph.
* Header row sometimes not shown.
* Values sometimes not relative to a given graph.