Added evaluation logic for next_key and itoc.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>