Fix "Potential buffer overflow #14" (SlimList_ToString)

Please review. I would be interested in any feedback.