Modify deepCopy() to correctly clone dates

This allows dates to be passed as query motif arguments