Dynamic Dependency Pairs for Algebraic Functional Systems (Logical Methods in Computer Science, 2012)