Elm: fix evaluation

Closes #2749.