Added caption package to beamer template.

Closes #1200.