Fix bug in erlang views test

This test was incorrectly relying on a bug in the reduce behavior that
would return a reduce value without ever re-reducing it. The fix is to
just correct the test reduce function to behave properly.

COUCHDB-2001