Two things...

Fix your code so that that there are no var in strings, ie.
this
"$Row : $Col = $c" ?
should be this
$Row + " : " + $Col + " = " + $c

You should also consider adding $RC=SetOption("NoVarsInStrings","on") to the top of all your scripts to enforce this.

Second, what is happening is not a bug but simply how kixtart handles data types. $Row and $Col are numbers, and $c is sometimes a number and sometimes text.
To fix this try:
"" + $Row + " : " + $Col + " = " + $c
_________________________
(... better days ahead)