added JSON serialization support for DateTime fields

Hi Julian,

I stumbled upon your package and was about to use it in my project when I noticed it didn't properly serialize DateTime fields, so I thought it might be a good idea to fix that.
Btw, good work! It indeed saves a lot of typing ;-)

Stefano Tondo