add BaseType support in ComplexType