Fix fields getting wrong parent
Fix enum getting wrong parent
Merge pull request #5 from cujo/fix-nested

Fix fields getting wrong parent