Removed complex type in Java part.

Complex types should be handled in JavaScript/transform part.
Improved generating enum types.