corrected bug in serialization for Key lists, and bug with saving dates objects