Fix bug that prevented forced datetime objects to become SQLAlchemy Date() columns

Since datetime objects are instances of the date class, the order of checking for types is important.  Since check against date came before datetime, that check returned true.  The fix is simple:  move the check for datetime to come before the check for date.