Support tables with caption, separated from text. Also support referencing of tables.
In order to allow this, Table now is an Identifiable and gets a "caption" attribute.
This is currently used only by the Latex generator.