added null checks to serialization
added type adapters for java.util.Date serialization