add to_int and remove_null; fix is_int for 0