Improvements handling of internal links

These patches

- enable handling of internal links by the Org reader;
- fix a typo in the RST reader;
- modify the LaTeX writer to write a `\label` if a span has an non-empty ID instead of ignoring the ID.