Fixed JSON dumps (added support for datetime objects)