Add support for stemmable tabnotes.

Also improve support for Caja environments.