Lookup itemViewClass and emptyView of collectionView if given as string

Fixes #3116

If itemViewClass and emptyView of collectionView is given as string, look
it up on the current view first, then fallback to the container.