DOC: Spelling fixes

[wt: this contains spelling fixes for both doc and code comments,
 should be backported, ignoring the parts which don't apply]
7 files changed