fix the class redefine error in sub class of Schema
1. change class Table_Stats to Table_Stats_$type
2. change class Relation_Stats to Relation_Stats_$type