Fix for date, datetime, and tuples that aren't database records