Fix known typos

Sweep the codebase for common typos. Includes some changes to visible function
names that were misspelt.