Update json-patch-duplex.js

Modify generate function to ensure dates are the same type.