TTabCom: Add check for class duplicates and swap checking order.

Since we look for classes in two tables we have to check for duplicates and not insert them. Changed the iteration on ClassTable first because of the number of elements in each: ClassTable-456, MapFile-3000..