Fix list view creation problems

The view generating hierachy and the simple views have become more complex.
This means that it is no longer sufficient to check if the tag is null, to
see if we can reuse the view. We also need to check if the view is the correct
type. We do this by checking the type of the tag, because it leads to
slightly simpler code.
Merge commit '05f2fd5a3fa3c18e108ea3e908e1a6f848c98151' into actionbar

* commit '05f2fd5a3fa3c18e108ea3e908e1a6f848c98151':
  Fix list view creation problems