some tag functions + some fixes for GtkTextIter