Fix memory leaks due to recreation of AbstractFileFilter for each call
of `ImportFileWidget::currentFileFilter()`. The filter now is stored
in a `QSharedPointer` as a member of ImportFileWidget and reused if
the file type does not change.
The change is propagated to options widgets.
A new method `AbstractFileFilter::type()` returns the type of the
current filter.