CGE2: Fix GCC warning, rewrite Text::clear()