C module: fixed bug in method iter()

Output wasn't created correctly - output at given positon is a sum of
output from all nodes connect by fail-edges.