title: KnockoutJS not applying beforeRemove and afterAdd on nested templates
body: <p>I've been building a nested query editor in knockoutjs and added animations to it using the beforeRemove and afterAdd options on a template in foreach mode. It works just fine on the first level of nesting, but not when manipulating filters in a child filter group.</p>
  
  <p>Am I doing something wrong, or is this a bug in KnockoutJS? Is afterAdd and beforeRemove not supported for nested templates? If so, is there a workaround?</p>
  
  <p>Here is <a href="http://jsfiddle.net/daedalus28/98GwD/" rel="nofollow">my jsfiddle of the problem</a>.</p>
  
  <p>Also, is there a way to change the animation behaviour based on what is being added/removed? I'd like to have different animations for adding/removing filter groups then adding/removing filters themselves.</p>