Fix Variable.eval() (issue #1724 on github)

It is now possible to call Variable.eval() with different sets of input
parameters.