TableAdapter: Improve view type handling