allows SQL min and max to be used with :date and :datetime type columns

closes https://github.com/elixir-lang/ecto/issues/205