fixed bug in Pattern.traverseComponent (stack overflow)