Fix typos in doc comments triggering warnings and incorrect docs