Created a default function to handle serialization

This handles Point and datetime