Fixed some test cases and ComplexTypeNodeValidator - it was failing on nested type definitions.
Rebuilt docs and dist.