textiter: more generic implementation for starts/ends/inside word

To use only gtk_text_iter_forward_word_end() and backward_word_start()
which will be overridable.