[COLOR] Typo fix in comment.
[COLOR] Be even more specific when mixing float and int arithmentics.

(Coverity CID 1227534 and CID 1227535.)
[GRID] Fix use of potentially uninitialized variables.

(Coverity CID 1227530, 1227531, 1227532, 1227533)