Generic JSON serialization improved, added basic supports for date