Completion: simplify move_cursor()

Add some higher level functions in the CompletionModel.
Completion: use higher level CompletionModel's functions
CompletionModel: change iter_last() as static

Since this function is no longer used outside CompletionModel.
Adapt also the unit tests.