Cleanup #1
Attempt to fix inheritance
Cleanup ClassMetadata more
Fix bug with rootDocumentName
More fixes on mapped superclass handling
Fix stupid mistake
Merge branch 'Cleanup'