Widgets: test for sequence widget after testing for autocomplete widgets.

Some widgets match both, autocomplete and sequence widgets.
In this case we want to have the autocomplete widget.

Warning: the widgets modules need to be imported in reverse.