Added functionality to allow for date and datetime to be saved without using to_yaml via marshaling. i.e. datetime and date can still be marshaled using to_date and to_datetime for the string object.