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

@DavidBadura pointed me to his PR #61 for lifecycle callbacks where he fixes the bug about mappedsuperclass. i ported that into a separate commit as the other thing seems to be stuck.

this would solve the issue i mention in https://github.com/doctrine/DoctrineCouchDBBundle/pull/27