Fixes memory leak in AnimationChain

Fixed cyclical reference problem in the AnimationChain related to a strong reference being created to a non-weak lambda.

Test was added to prove that chain does not leak.