Evalresp fix (see #686) rebased onto releases

This is #686 rebased onto releases to make it possible to use this bugfix with the 0.8.4 codebase.