fix mappedsuperclass (porting fix from #61 by @DavidBadura)
adding tests for mapped superclass
Merge pull request #65 from dbu/fix-mappedsuperclass

fix mappedsuperclass (porting fix from #61 by @DavidBadura)