Part of #2234 and #2228.
Fixed system transaction for insert into, since it is required to insert with given OID.
Fixed transactions for schema updates in table upgrades.
Fixed or disabled tests over materialized tables, since no meta-data about them self.
Fixed test of meta-data for columns moved from ClrPrimitiveType to MapPrimitiveType.
Other fixes in tests related to materialized tables.
Work around for cache invalidation, #2249.