compiler: do not optimize Name

The optimization is wrong; they can't have side effects, but they can
raise errors.