Revert change on Referenceable, and resolve the AnimationFactory problem in
another way: ReleaseAnimationFactory takes care to delete the object
in case it holds the last reference.