the ; indicates a comment in the ini file itself: http://en.wikipedia.org/wiki/INI_file

to get arround this, for example prefix all items with a dummy char:
//writeini test.ini testsection $+(•,;testitem) ;testvalue
//echo -a $readini(test.ini,testsection,$+(•,;testitem))