Fixed identifier-to-iid conversion and some other bugs in eval.