Fix build.
Date parameters can be serialized.

They were erroneously treated as numbers because JavaScript's `isNaN` coerces
its value before checking whether it's "numeric".
Merge pull request #57 from hjdivad/fix-isnan

Date parameters can be serialized.