Fix a couple compiler warnings about "array subscript has type ‘char’"
and other minor things.