Fix some minor typos in doc comments / code comments.
Merge pull request #2481 from mjul/fix-typos

Fix some minor typos in doc comments / code comments.