Add "iterateTokenByValue" method

Closes gh-597