Eval: fix handling of inputs in TO

Fixes #6.