Populating RawView instances with updated references to MaterializedTable instances. Re-enabled debug assertion of correctly populated meta-data. Fixes #2352.
Added tests to check that all materialized table and column instances are populated into rawview instances. Closes #2352.