MODE-1871 Corrected misspelled word in exception message

The first commit corrects the spelling error, while the second commit corrects a half-dozen compiler warnings from recent commits.