removed typos for 'optional' attributes

the word 'optional' was mispelled in about six places. Corrected the
spelling.