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

It is now possible to call Variable.eval() with different sets of input
parameters.
Fix dependency on random order of dict.keys()
Merge pull request #1735 from rizar/fix_eval

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