Expire left/right attributes of modified parents.

Fixes #30.

This PR is fully backwards compatible, but to activate the correct behavior when flushing session, an additional step has to be executed when creating the session factory. This is documented in the `TreesManager.register_factory` method docstring.