Clean-ups in libpromises/evalfunction.c

See individual commit messages.