Tophat: upgrade to 2.0.12.

Closes #963.