beamer:  added lines to fix table captions with longtable.

Thanks to Joost Kremers.
Merge branch 'master' of git://github.com/jgm/pandoc-templates