fixed issue 1222, chain and loops weren't respected by debug renderer
fixed issue 1203, pingpong keframe indexing was off