Fix Lifecycle Callbacks

Remove a bit of code that breaks lifecycle callbacks of parent MappedSuperclasses
Add a test

addLifecycleCallback now only allows a callback once so we do not hook them twice
Fix some code standard things
Fix some code standard things
Merge pull request #902 from gwagner/master

Fix Lifecycle Callbacks