fix float/long problems 

in repl_insert_text and repl_erase_text