Support min and max on dates. Closes #84