Support for inline complex types
If an element has no type attribute it does not mean it has a complexType child node
Various fixes to make inline types and extension work properly