Fixes to semantic view routine and table linearization routine.