Fix for #80, #81. Serialize function ignores ObjectID & Date types