added $convert_dates parameter to Model->toArray() which can disable conversion of date and datetime objects to strings