Implement support for complex WSDL/XSD schemas.

- process wsdl imports
- order all type definitions so that base classes are defined before subclasses
- include module in all type references so they can't be shadowed by element names, use _ for the local module
Fix regressions preventing schema validation.
Simplify client method invocation.