(pouchdb/mapreduce#15) - handle NaN/Inf/dates

Ensures that PouchDB mimics CouchDB's
behavior for mapreduce keys containing
NaN, Infinity, -Infinity, and dates.