Fix writeDate implementation to use v8::Value::IsDate()
Remove unneeded casts.
Implement readDate()