fixed ManyToOne issues with inherited fields and associations

Hopefully fixes #87 for good. @DavidBadura , please merge this after #102 (i suppose this will need rebasing) (and this is another reminder of sharing repository access with me for another minor bugfixes).