Added tests to check that all materialized table and column instances are populated into rawview instances. Closes #2352.